<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
</head>
<body>
	
	<div class="all">
		<div class="line_input_one" style="margin-top: 20px;">
			<div class="one_L">项目名称*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="hidden" name="tz_xiangmu_id" id="tz_xiangmu_id">
				<input type="text" name="tz_xiangmu_name" id="tz_xiangmu_name" style="height: 39px;"
				       data-toggle="topjui-combobox"
				       data-options="required:true,prompt:'必填',
				                  	 panelHeight:150,
														 onSelect:function(node){
														 	 $('#tz_xiangmu_id').val(node.id);
														 },
				                   	 valueField:'zidian_value',
				                   	 textField:'zidian_value'">
			</div>
			<div class="one_L">台账日期*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="tz_shijian" style="height: 39px;"
				       data-toggle="topjui-datebox" 
							 data-options="required:true,id:'tz_shijian',prompt:'必选',width:300">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">种类*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="tz_zhonglei_name" id="tz_zhonglei_name" style="height: 39px;"
				       data-toggle="topjui-combobox"
				       data-options="required:true,prompt:'必填',
				                  	 panelHeight:150,
														 onSelect:function(node){
																getA_ZhL_PZhList(node.id);
														 },
				                   	 valueField:'zhonglei_name',
				                   	 textField:'zhonglei_name'">
			</div>
			<div class="one_L">食品名称*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="tz_shipin_name" id="tz_shipin_name" style="height: 39px;"
				       data-toggle="topjui-combobox"
				       data-options="required:true,prompt:'必填',
				                  	 panelHeight:150,
				                   	 valueField:'pinzhong_name',
				                   	 textField:'pinzhong_name'">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">品牌<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="tz_pinpai" id="tz_pinpai" style="height: 39px;"
				       data-toggle="topjui-combobox"
				       data-options="prompt:'品牌非必填',
							               panelHeight:150,
				                   	 valueField:'zidian_value',
				                   	 textField:'zidian_value'">
			</div>
			<div class="one_L">规格<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="tz_guige" type="text" name="tz_guige" style="height: 39px;"
				       data-toggle="topjui-textbox"
				       data-options="prompt:'规格非必填'">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">单位<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="tz_danwei" type="text" name="tz_danwei" style="height: 39px;"
				       data-toggle="topjui-textbox"
				       data-options="prompt:'单位非必填'">
			</div>
			<div class="one_L">数量*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="tz_shuliang" type="text" name="tz_shuliang" style="height: 39px;"
				       data-toggle="topjui-numberbox"
				       data-options="required:true,prompt:'必填',min:0">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">单价(元)*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="tz_danjia" type="text" name="tz_danjia" style="height: 39px;"
				       data-toggle="topjui-numberbox"
				       data-options="required:true,prompt:'必填',
							               onChange:function(newValue, oldValue){
															console.log('newValue==',newValue);
															console.log('oldValue==',oldValue);
							               	var sl=$('#tz_shuliang').iNumberbox('getValue'); 
							               	var z=sl*newValue;
															$('#tz_heji').iNumberbox('setValue', z);
							               },
														 min:0,precision:2,prefix:'￥'">
			</div>
			<div class="one_L">合计(元)<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="tz_heji" type="text" name="tz_heji" style="height: 39px;" readonly="readonly"
				       data-toggle="topjui-numberbox"
				       data-options="min:0,precision:2,prefix:'￥'">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">生产日期<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="tz_shengchanriqi" style="height: 39px;"
				       data-toggle="topjui-datebox" 
							 data-options="id:'tz_shengchanriqi',prompt:'生产日期非必选',width:300">
			</div>
			<div class="one_L">保质期<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="tz_baozhiqi" type="text" name="tz_baozhiqi" style="height: 39px;"
				       data-toggle="topjui-textbox"
				       data-options="prompt:'保质期非必填'">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">供应商<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="tz_gyshang_name" type="text" name="tz_gyshang_name" style="height: 39px;"
				       data-toggle="topjui-textbox">
			</div>
			<div class="one_L">联系人<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="tz_gyshang_lianxiren" type="text" name="tz_gyshang_lianxiren" style="height: 39px;"
				       data-toggle="topjui-textbox">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">联系方式<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="tz_gyshang_phone" type="text" name="tz_gyshang_phone" style="height: 39px;"
				       data-toggle="topjui-textbox">
			</div>
			<div class="one_L">结款方式*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="tz_jiekuanfangshi" id="tz_jiekuanfangshi" style="height: 39px;"
				       data-toggle="topjui-combobox"
				       data-options="required:true,prompt:'必填',
				                  	 panelHeight:150,
				                   	 valueField:'zidian_value',
				                   	 textField:'zidian_value'">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">账物一致*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="tz_zhangwuyizhi" id="tz_zhangwuyizhi" style="height: 39px;"
				       data-toggle="topjui-combobox"
				       data-options="required:true,prompt:'必填',
				                  	 panelHeight:60,
				                   	 data:[{value:'是',text:'是'},
				                   	 			 {value:'否',text:'否'}]">
			</div>
			<div class="one_L">验收人*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="tz_yanshouren" id="tz_yanshouren" style="height: 39px;"
				       data-toggle="topjui-combobox"
				       data-options="required:true,prompt:'必填',
				                  	 panelHeight:150,
				                   	 valueField:'zidian_value',
				                   	 textField:'zidian_value'">
			</div>
		</div>
		
	</div>
</body>
</html>